package com.treasure.mall.biz.remote.quickpay;

import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.binarywang.wxpay.service.WxPayService;
import com.treasure.mall.biz.remote.quickpay.dto.WxRefundDTO;
import com.treasure.mall.biz.remote.quickpay.dto.WxTradeOrderDTO;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.remote.quickpay
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/13 00:11
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.remote.quickpay Inc. All rights reserved.
 */
public interface WechatPayService {

    /**
     * 获取微信支付服务
     *
     * @return
     */
    WxPayService getWxPayService();

    /**
     * 获取支付信息
     *
     * @param order
     * @param request
     * @return
     */
    Object JsApiBizPackage(WxTradeOrderDTO order, HttpServletRequest request);

    /**
     * 调用微信退款
     *
     * @param dto
     * @return
     */
    Boolean wxRefund(WxRefundDTO dto);
}
